{extend name="common@base" /}
{block name="content"}
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <form action="" method="post" class="form">
        <div class="box box-primary">
          <div class="box-body">
            <div class="form-group">
              <label for="">标题</label>
                <input type="text" name="form[title]" value="{$row.title}" class="form-control">
            </div>
            <div class="form-group">
              <label for="">内容
                <script id="container" name="form[content]" type="text/plain">
                  {$row.content}
                </script>
              </label>
            </div>

          </div>
          <div class="box-footer">
            <div>
              <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
              <a href="javascript:history.back()" class="btn btn-default">返回</a>
            </div>
          </div>
        </div>

      </form>
    </div>
</section>
{/block}
{block name="page_script"}
<script>
  require(["layer_config", "ajaxForm",], function (layer) {

  });
  require(["ueditor"], function (ueditor) {
    var ue = ueditor.getEditor('container', {
      UEDITOR_HOME_URL: "__STATIC__/ueditor/",
      autoHeight: false,
      initialFrameHeight: 520,
      autoHeightEnabled:false,
      scaleEnabled:true
    });
    ue.ready(function () {
      //ue.execCommand('drafts');
    });
  });
</script>
{/block}





